home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
controls
/
geticon2.frm
< prev
next >
Wrap
Text File
|
1993-05-16
|
2KB
|
81 lines
VERSION 2.00
Begin Form Form2
Caption = "Find Some Icons"
ClientHeight = 4470
ClientLeft = 1785
ClientTop = 1500
ClientWidth = 6825
Height = 4875
Left = 1725
LinkTopic = "Form2"
ScaleHeight = 4470
ScaleWidth = 6825
Top = 1155
Width = 6945
Begin FileListBox File1
Height = 1980
Left = 3480
TabIndex = 4
Top = 1200
Width = 1935
End
Begin CommandButton Command1
Caption = "OK"
Height = 495
Left = 2640
TabIndex = 3
Top = 3720
Width = 1335
End
Begin DirListBox Dir1
Height = 1575
Left = 480
TabIndex = 1
Top = 1800
Width = 2175
End
Begin DriveListBox Drive1
Height = 1530
Left = 480
TabIndex = 0
Top = 1200
Width = 1215
End
Begin Label Label1
Alignment = 2 'Center
Caption = "Navigate to the desired subdirectory containing icon (.ICO) files."
Height = 495
Left = 1680
TabIndex = 2
Top = 360
Width = 3615
End
End
Option Explicit
Sub Command1_Click ()
form2.Hide
If file1.ListCount = 0 Then
form1.Command2.Enabled = False
Else
form1.Command2.Enabled = True
End If
form1.Show
form1.SetFocus
End Sub
Sub Dir1_Change ()
file1.Path = dir1.Path
End Sub
Sub Drive1_Change ()
dir1.Path = drive1.Drive
End Sub
Sub Form_Load ()
file1.Pattern = "*.ico"
drive1.Drive = "c:\vb\icons"
dir1.Path = "c:\vb\icons"
End Sub